#encoding:utf8

import traceback


def ignore_exception(func):
    def wrap(*args, **kwargs):
        try:
            return func(*args, **kwargs)
        except:
            traceback.print_exc()
    return wrap